library(shiny)

shinyUI(fluidPage(
  ## title
  titlePanel("Demonstration of submitButton() in shiny"),
  sidebarLayout(
    sidebarPanel(
      textInput("text1","Enter your first name"),
      textInput("text2", "Enter your famliy name"),
      ## submitButton 
      submitButton("Update!"),
      p("Click on the Update button to display the first and last name entered by the user...")
    ),
    mainPanel(
      textOutput("txt1"),
      textOutput("txt2")
    )
  )
))